<!DOCTYPE html>
<html>
<head>
    <title>应用设置</title>
	<#include "/common/import.ftl" >
    <script type="text/javascript">
        var inputForm = '#inputForm';
        $(function () {
            $(inputForm).form({
                onSubmit: function () {
                    return $(this).form('validate');
                },
                success: function (data) {
                    var result = jQuery.parseJSON(data);
                    if (result.flag == 'T') {
                        $.messager.alert('提交结果', '操作成功', 'info', function () {
                            parent.colseAdd();
                            parent.reload();
                        });
                    } else if (result.flag == 'H') {//有子列表时，提示不能修改标识
                        $.messager.alert('提交结果', result.msg, 'info');
                    } else {
                        $.messager.alert('提交结果', '操作失败', 'error');
                    }
                }
            });
        });
    </script>

<body>

<div id="tip"></div>
<form id="inputForm" name="inputForm" method="post" action="save.action">
    <input type="hidden" name="formToken" id="formToken" value="${formToken!''}"/>
    <input type="hidden" name="modelId" id="modelId" value="${item.modelId!''}"/>
    <table class="datagrid-body">
        <tr>
            <td class="datagrid-header">中文名称<font color="red">*</font></td>
            <td>
                <input name="modelCname" id="modelCname" value="${item.modelCname!''}"
                       class="easyui-validatebox" style="width:220px;" data-options="required:true"
                       missingMessage="请输入中文名称"/>
            </td>
        </tr>
        <tr>
            <td class="datagrid-header">英文名称<font color="red">*</font></td>
            <td>
                <input id="modelEname" name="modelEname" value="${item.modelEname!''}"
                <#if item.modelEname??> readonly="readonly"</#if>
                       class="easyui-validatebox" data-options="required:true" style="width:220px;"
                       missingMessage="英文名称，用字母组合"/>
            </td>
        </tr>
        <tr>
            <td class="datagrid-header">业务名称<font color="red">*</font></td>
            <td>
                <input id="modelBussiness" name="modelBussiness" value="${item.modelBussiness!''}"
                       class="easyui-validatebox" data-options="required:true" style="width:220px;"
                       missingMessage="请输入业务名称"/>
            </td>
        </tr>
        <tr>
            <td class="datagrid-header">系统名称<font color="red">*</font></td>
            <td>
                <input id="modelSysname" name="modelSysname" value="${item.modelSysname!''}"
                       class="easyui-validatebox" data-options="required:true" style="width:220px;"
                       missingMessage="请输入系统名称"/>
            </td>
        </tr>
        <tr>
            <td class="datagrid-header">描述<font color=red>*</font></td>
            <td>
                <input name="modelRemark" id="modelRemark" value="${item.modelRemark!''}"
                       size="40" class="easyui-validatebox"/>
            </td>
        </tr>
        <tr>
            <td class="datagrid-header"></td>
            <td>
                <a href="#" class="easyui-linkbutton" iconCls="icon-save"
                   onclick="$('#inputForm').submit();">提交</a>
                <a href="#" class="easyui-linkbutton" iconCls="icon-cancel"
                   onclick="parent.colseAdd();" ;>取消</a>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
